//
//  KeyHash
//
//  Created by Caue W. on 2011-03-04.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
package time.types.ds;

class KeyHash<T> 
{
	private var h:Hash<T>;
	
	public function new()
	{
		h = new Hash();
	}
	
	public inline function get( k : Key<T>) : T
	{
		return h.get(k.toString());
	}
	
	public inline function set(k : Key<T>, v : T) : Void
	{
		h.set(k.toString(), v);
	}
	
	public inline function remove(k : Key<T>) : Bool
	{
		return h.remove(k.toString());
	}
	
	public inline function exists(k : Key<T>) : Bool
	{
		return h.exists(k.toString());
	}
	
	public inline function iterator()
	{
		return h.iterator();
	}
	
	public inline function keys()
	{
		return h.keys();
	}
	
	
	
}